package com.ruoyi.ap.domain;

import java.math.BigDecimal;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
/*
  销售产品清单对象 ap_order_detail *
  @author HuaQP
  @date 2023-09-15
 */
public class OrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 销售单id */
    @Excel(name = "销售单id")
    @NotNull(message = "销售单id不能为空")
    private Long orderId;

    /** 产品id */
    @Excel(name = "产品id")
    @NotNull(message = "产品id不能为空")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Long count;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

}
